package com.campus.customer.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 积分记录VO
 *
 * @author ZhaoYuJie
 * @since 2025-01-15
 */
@Data
@ApiModel(value = "PointsRecordVo", description = "积分记录VO")
public class PointsRecordVo {

    @ApiModelProperty("记录ID")
    private Integer id;

    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("积分变动值")
    private Integer points;

    @ApiModelProperty("类型：1-获得，2-消费")
    private Integer type;

    @ApiModelProperty("来源：order-订单，exchange-兑换，sign-签到")
    private String source;

    @ApiModelProperty("来源ID")
    private String sourceId;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

}